/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pub.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author zmy
 * @version 2019-04-18
 */
public class PubDonate extends DataEntity<PubDonate> {
	
	private static final long serialVersionUID = 1L;
	private String userid;		// 捐助人id
	private String username;		// 捐助人
	private String donatetime;		// 捐助时间
	private String articleid;		// 项目id
	private String amt;		// 金额
	private String articlename;		// 项目名
	
	public PubDonate() {
		super();
	}

	public PubDonate(String id){
		super(id);
	}

	@Length(min=0, max=32, message="捐助人id长度必须介于 0 和 32 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=0, max=32, message="捐助人长度必须介于 0 和 32 之间")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	@Length(min=0, max=20, message="捐助时间长度必须介于 0 和 20 之间")
	public String getDonatetime() {
		return donatetime;
	}

	public void setDonatetime(String donatetime) {
		this.donatetime = donatetime;
	}
	
	@Length(min=0, max=32, message="项目id长度必须介于 0 和 32 之间")
	public String getArticleid() {
		return articleid;
	}

	public void setArticleid(String articleid) {
		this.articleid = articleid;
	}
	
	@Length(min=0, max=10, message="金额长度必须介于 0 和 10 之间")
	public String getAmt() {
		return amt;
	}

	public void setAmt(String amt) {
		this.amt = amt;
	}
	
	@Length(min=0, max=50, message="项目名长度必须介于 0 和 50 之间")
	public String getArticlename() {
		return articlename;
	}

	public void setArticlename(String articlename) {
		this.articlename = articlename;
	}
	
}